package cn.xfdzx.android.apps.shop.contract;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.BaseObjectBean;
import cn.xfdzx.android.apps.shop.bean.ProcurementTypeListBeen;
import cn.xfdzx.android.apps.shop.bean.ProcurementTypeSubmitBeen;
import cn.xfdzx.android.apps.shop.bean.PurchaseEditBeen;
import cn.xfdzx.android.apps.shop.bean.PurchaseSubmitBeen;
import cn.xfdzx.android.apps.shop.bean.PurchaseSubmitEditBeen;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface ProcurementConfimListContract {
    interface Model {

        Flowable<PurchaseSubmitBeen> purchaseEdit(PurchaseSubmitEditBeen body);
        Flowable<BaseObjectBean> purchaseDelete(String purchase_sn);

    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onPurchaseEditSuccess(PurchaseSubmitBeen bean);
        void onPurchaseDeleteSuccess(BaseObjectBean bean);
    }

    interface Presenter {
        /**
         *
         */

        void purchaseEdit(PurchaseSubmitEditBeen body);
        void purchaseDelete(String purchase_sn);
    }
}
